package com.ty.fulllite;

import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

/**
 * @author zhutianyu
 * @date 2021/9/16 16:40
 */
//@Component
public class LiteConfig {

    @Bean
    public User user(){
        return new User("17",17);
    }

    @Bean
    public User user1(){
        System.out.println("user() = " + user());
        System.out.println("user() = " + user());
        return new User("171",171);
    }


    public static class InnerConfig {

        @Bean
         private final User userInner() { // 只在lite模式下才好使
//        public User userInner() {
            return new User("inner",123);
        }
    }



}
